import request from '@/utils/request'


// 生成合同编号
export function Htcode(agrId) {
  return request({
    url: '/AgreementBig/AgreementBig/Htcode',
    method: 'get'
  })
}
// 查询合同列表
export function listAgreementBig(query) {
  return request({
    url: '/AgreementBig/AgreementBig/list',
    method: 'get',
    params: query
  })
}

// 查询合同列表
export function listoutAgreementBig(query) {
  return request({
    url: '/AgreementBig/AgreementBig/listout',
    method: 'get',
    params: query
  })
}

// 用户状态修改
export function changeHtStatus(agrId, agrType) {
  const data = {
    agrId,
    agrType
  }
  return request({
    url: '/AgreementBig/AgreementBig/changeStatus',
    method: 'put',
    data: data
  })
}


// 查询合同详细
export function getAgreementBig(agrId) {
  return request({
    url: '/AgreementBig/AgreementBig/' + agrId,
    method: 'get'
  })
}

// 查询合同详细
export function getoutAgreementBig(agrId) {
  return request({
    url: '/AgreementBig/AgreementBig/out/' + agrId,
    method: 'get'
  })
}

// 新增合同
export function addAgreementBig(data) {
  return request({
    url: '/AgreementBig/AgreementBig',
    method: 'post',
    data: data
  })
}

// 修改合同
export function updateAgreementBig(data) {
  return request({
    url: '/AgreementBig/AgreementBig',
    method: 'put',
    data: data
  })
}

// 删除合同
export function delAgreementBig(agrId) {
  return request({
    url: '/AgreementBig/AgreementBig/' + agrId,
    method: 'delete'
  })
}
